import request from "@/axios";

// 卖家查询可关联合同的订单
export const getSellerAssociatedOrderList = option =>
  request({
    url: "/api/order/providerquerycontractrelationorders",
    method: "post",
    data: option
  });

// 买家查询可关联合同的订单
export const getBuyerAssociatedOrderList = option =>
  request({
    url: "/api/order/customerquerycontractrelationorders",
    method: "post",
    data: option
  });

// 买家合同-交易公司列表
export const getBuyerCustomerCompanyList = option =>
  request({
    url: "/api/company/getcontractcustomercompanylist",
    method: "get",
    params: option
  });

// 卖家合同-交易公司列表
export const getSellerCustomerCompanyList = option =>
  request({
    url: "/api/company/getcontractprovidercompanylist",
    method: "get",
    params: option
  });

// 获取合同模板
export const getContractTemplate = option =>
  request({
    url: "/api/order/getcontracttemplate",
    method: "post",
    data: option
  });

//卖家合同-切换公司列表
export const getSellerContractSelectCompanyList = option =>
  request({
    url: "/api/company/providercontractselectcompanylist",
    method: "get",
    params: option
  });

//买家合同-切换公司列表
export const getBuyerContractSelectCompanyList = option =>
  request({
    url: "/api/company/customercontractselectcompanylist",
    method: "get",
    params: option
  });
